/*=============================================================================
#    The element-comm is a tentative program used to test our ideas.           
#                       Copyright (C)  bgao                                    
#
#     This program is free software; you can redistribute it and/or            
#      modify it under the terms of the GNU General Public License             
#     as published by the Free Software Foundation; either version 2           
#         of the License, or (at your option) any later version.               
#
#     This program is distributed in the hope that it will be useful,          
#    but WITHOUT ANY WARRANTY; without even the implied warranty of           
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the            
#             GNU General Public License for more details.                    
#
#    You should have received a copy of the GNU General Public License        
#     along with this program; if not, write to the Free Software             
#      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,             
#                       MA  02110-1301, USA.                                  
#==============================================================================
# $Id$ 
#
# $Author$ 
#
# $Revision$ 
#
# $Date$ 
#
# Description: 
#
=============================================================================*/
#include    "rtos-wsn.h"


#define VECTOR_NUM		35

typedef void (*isr_func)(void);



extern void isr_timer0_comp(void);

extern void isr_usart0_rx(void);

extern void isr_cc2420_fifop(void);



/* default ISR */
void isr_default(void)
{
	asm("nop");
}


/* int vector isr initlization */
 const isr_func user_int_vector[VECTOR_NUM] FLASH={
	0x00,		/* RESET */
	isr_default,	/* VECTOR_INTERRUPT0 */
	isr_default,	/* VECTOR_INTERRUPT1 */
	isr_default,	/* VECTOR_INTERRUPT2 */
	isr_default,	/* VECTOR_INTERRUPT3 */
	isr_default,	/* VECTOR_INTERRUPT4 */
	isr_default,	/* VECTOR_INTERRUPT5 */
	isr_cc2420_fifop,	/* VECTOR_INTERRUPT6 */
	isr_default,	/* VECTOR_INTERRUPT7 */
	isr_default,	/* VECTOR_TIMER2_COMP */
	isr_default,	/* VECTOR_TIMER2_OVF */
	isr_default,	/* VECTOR_TIMER1_CAPT */
	isr_default,	/* VECTOR_TIMER1_COMPA */
	isr_default,	/* VECTOR_TIMER1_COMPB */
	isr_default,	/* VECTOR_TIMER1_OVF */
	isr_timer0_comp, 	/* VECTOR_TIMER0_COMP */
	isr_default,	/* VECTOR_TIMER0_OVF */
	isr_default,	/* VECTOR_SPI_STC */
	isr_usart0_rx,		/* VECTOR_USART0_RX */
	isr_default,	/* VECTOR_USART0_UDRE */
	isr_default,	/* VECTOR_USART0_TX */
	isr_default,	/* VECTOR_ADC */
	isr_default,	/* VECTOR_EE_READY */
	isr_default,	/* VECTOR_ANALOG_COMP */
	isr_default,	/* VECTOR_TIMER1_COMPC */
	isr_default,	/* VECTOR_TIMER3_CAPT */
	isr_default,	/* VECTOR_TIMER3_COMPA */
	isr_default,	/* VECTOR_TIMER3_COMPB */
	isr_default,	/* VECTOR_TIMER3_COMPC */
	isr_default,	/* VECTOR_TIMER3_OVF */
	isr_default,	/* VECTOR_USART1_RX */
	isr_default,	/* VECTOR_USART1_UDRE */
	isr_default,	/* VECTOR_USART1_TX */
	isr_default,	/* VECTOR_TWI */
	isr_default		/* VECTOR_SPM_READY */
};

